package com.atguigu.mall.mallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.mall.mallproduct.entity.PmsCategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author Fuc
 * @email leftbear@gmail.com
 * @date 2020-10-21 10:38:18
 */
public interface PmsCategoryService extends IService<PmsCategoryEntity> {

  PageUtils queryPage(Map<String, Object> params);

  List<PmsCategoryEntity> listWithTree();

  void removeMenuByIds(List<Long> asList);

  /**
   * 找到catelogId的完整路径： [父/子/孙]
   *
   * @param catelogId
   * @return
   */
  Long[] findCatelogPath(Long catelogId);
}
